package hu.sulirend.model;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * Used for storing information about the schools classrooms.
 *
 * @see <code>hu.sulirend.model.Lesson</code>
 *
 * @author <a href="mailto: peter.szilagyi@gmail.com">Peter Szilagyi</a> 
 * @since 2008
 */
@Entity
public class Room extends BaseEntity {

	private static final long serialVersionUID = 5023548565898533065L;
	
	private String name;
	private Integer capacity;
	
	@Column(unique=true, nullable=false, updatable=true, insertable=true)
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(unique=false, nullable=false, updatable=true, insertable=true)
	public Integer getCapacity() {
		return capacity;
	}
	public void setCapacity(Integer capacity) {
		this.capacity = capacity;
	}
	
}
